package o;

import android.content.Context;
import java.util.HashMap;
import java.util.Map;

public abstract class avi {
    private static final Object ˊ = new Object();
    private static final Map<String, avi> ˏ = new HashMap();

    public abstract String ˊ(String str);

    public static avi ॱ(Context context) {
        avi o_avi;
        Context applicationContext = context.getApplicationContext();
        if (applicationContext != null) {
            context = applicationContext;
        }
        synchronized (ˊ) {
            o_avi = (avi) ˏ.get(context.getPackageName());
            if (o_avi == null) {
                o_avi = new avl(context);
                ˏ.put(context.getPackageName(), o_avi);
            }
        }
        return o_avi;
    }
}
